<template>
  <div class="topWrap">
    <div class="logo">
      <img src="../../assets/logo_news.png" alt="" />
      <span>{{ logoTitle }}</span>
    </div>
    <div>
      <ul>
        <li>个人中心</li>
        <li>设置</li>
        <li @click="logout">退出</li>
      </ul>
    </div>
  </div>
</template>

<script>
import { logoTitle } from "@/config";
export default {
  data() {
    return {
      logoTitle,
    };
  },
  methods: {
    logout() {
      this.$router.push("/login");
    },
  },
};
</script>

<style scoped lang="scss">
.topWrap {
  display: flex;
  height: 80px;
  background: rgb(35, 38, 46);
  justify-content: space-between;
  line-height: 80px;
  padding: 0 20px;
  .logo {
    color: burlywood;
  }
  img {
    margin-top: 16px;
    vertical-align: top;
    margin-right: 8px;
  }
  ul {
    display: flex;
    list-style: none;
    li {
      list-style: none;
      margin: 0 6px;
      cursor: pointer;
      color: burlywood;
    }
    li:hover {
      color: white;
    }
  }
}
</style>